package com.me.libgdx_test;

import java.util.ArrayList;

//Enemy modifier: all enemies cowards, all enemies gain level, all enemies gain life
public class ClassPlayerEnemyMod {
	String[] enemy_mods;
	ClassPlayerEnemyMod(String...enemy_mods){
		this.enemy_mods = new String[enemy_mods.length];
		System.arraycopy( enemy_mods, 0, this.enemy_mods, 0, enemy_mods.length);
	}
	public void set_enemy(ClassCharacterEnemy enemy){
		for(String enemy_mod:enemy_mods){
			if(enemy_mod.equals("coward")){
				enemy.set_attack_mod("Coward", true);
			}
			if(enemy_mod.equals("stronger")){
				enemy.add_level();
			}
			if(enemy_mod.equals("life")){
				enemy.lives++;
			}
		}
	}
}
